Skip to content

Comments

[18.0][ADD] product_packaging_template_sale: New module#2134

Open
marielejeune wants to merge 2 commits intoOCA:18.0from
acsone:18.0-add-product_packaging_template_sale
Open

[18.0][ADD] product_packaging_template_sale: New module#2134
marielejeune wants to merge 2 commits intoOCA:18.0from
acsone:18.0-add-product_packaging_template_sale

Conversation

@marielejeune
Copy link
Contributor

Depends on #2133

This module extends the product_packaging_template that adds
packaging on template level.

The goal of this module is being able to set the "Sales" configuration
(determining if a packaging is usable in sale orders) on the packaging
template level.

"""
res = super().write(vals)
if "sales" in vals:
self.mapped("packaging_ids").write({"sales": vals["sales"]})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, the _get_value_to_propagate method was added afterwards, due to a review on the other PR, and I forgot to change it here. Done now.

@marielejeune marielejeune force-pushed the 18.0-add-product_packaging_template_sale branch from e53d044 to be993dd Compare November 25, 2025 10:26
@marielejeune marielejeune force-pushed the 18.0-add-product_packaging_template_sale branch from be993dd to d804a01 Compare November 25, 2025 10:38
Copy link
Contributor

@acsonefho acsonefho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM 💪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants